package com.niiwoo.civet.trade.dto;

import com.niiwoo.civet.base.enums.OrderRefundTypeEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by yuanguang on 2018/4/21.
 */
@Getter
@Setter
public class FeeDTO implements Serializable{
    private static final long serialVersionUID = -7491026442690182458L;
    private BigDecimal amount = BigDecimal.ZERO;
    private OrderRefundTypeEnum orderRefundTypeEnum;
    private List<FeeDetail> feeDetails = new ArrayList<FeeDetail>();

    @Getter
    @Setter
    public static class FeeDetail implements Serializable{
        private static final long serialVersionUID = -4690897104332459413L;
        //费项类型
        private Integer feeType;
        //费项金额
        private BigDecimal money = BigDecimal.ZERO;
    }
}
